<script type="text/javascript">
	//同意好友请求
	$("button[name=agree]").click(function(){
		var requestId = $(this).attr("requestId");
		jQuery.post("/Wyn/friend/agree_request",{"requestId":requestId});
		return false;
	});
	//忽略好友请求(不同意)
	$("button[name=reject]").click(function(){
		var requestId = $(this).attr("requestId");
		jQuery.post("/Wyn/friend/reject_request",{"requestId":requestId});
		return false;
	});
</script>
<div id="friendContentPanel" class="friends-listbox item_panel" style="display: block; ">
	<ul id="requests_friend_list" class="requests-list">	
	<#list requestList as request>
		<li class="request">
			<div class="figure">
				<a href="http://www.renren.com/profile.do?id=354783146" target="_blank">
					<img height="50" width="50" src="http://hdn.xnimg.cn/photos/hdn221/20110213/2300/h_head_OKk0_4cc30000ad7e2f74.jpg">
				</a>
			</div>
			<h4 class="header">
				<a href="http://www.renren.com/profile.do?id=354783146" target="_blank">${request.fromUser}</a>
				<span class="gray-text">
					(浙江大学)
				</span>
			</h4>
			<div class="btns">
				<button name="agree" requestId="${request.requestId}">接受</button>
				<button name="reject" requestId="${request.requestId}" class="gray-btn">拒绝</button>
			</div>
			<div class="detail">
				<div class="section"><q></q></div>						
				<div class="section description" id="description_354783146">
				</div>
			</div>
			<div class="btn-x"><a class="x-to-delete" click="friend_xxx:354783146"></a></div>
		</li>
	</#list>
	</ul>
</div>